using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace MilageMVC.Models
{
    public class MilageDB : DbContext
    {
        public MilageDB()
            : base("name=MileageConnection")
        {

        }


        // You can add custom code to this file. Changes will not be overwritten.
        // 
        // If you want Entity Framework to drop and regenerate your database
        // automatically whenever you change your model schema, add the following
        // code to the Application_Start method in your Global.asax file.
        // Note: this will destroy and re-create your database with every model change.
        // 
        // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<MilageMVC.Models.MilageMVCContext>());

        public DbSet<MilageMVC.Models.Distance> Distance { get; set; }
        public DbSet<MilageMVC.Models.DistanceType> DistanceTypes { get; set; }

        public DbSet<MilageMVC.Models.Mileage> Mileages { get; set; }

        public DbSet<MilageMVC.Models.UnitTypes> UnitTypes { get; set; }

        public DbSet<MilageMVC.Models.UserPreferances> UserPreferances { get; set; }

        public DbSet<MilageMVC.Models.Vehicle> Vehicles { get; set; }


        public DbSet<MilageMVC.Models.VolumeUnit> VolumeUnits { get; set; }


 
    }
}